package cn.flying.cloud;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author: admin
 * @date: 2024年03月19日 09:07
 * @version: 1.0
 */
@EnableFeignClients
@EnableDiscoveryClient
@MapperScan(basePackages = {"cn.flying.**.mapper", "cn.flying.cloud.uid.worker.dao"})
@SpringBootApplication(scanBasePackages = "cn.flying.**")
public class WebApplication {
    private static final Logger logger = LoggerFactory.getLogger(WebApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(WebApplication.class, args);
        logger.info("=======================Web服务启动成功！=========================");
    }
}
